import { request } from './../utils/request';
/*
 * @Author: your name
 * @Date: 2021-04-19 15:37:09
 * @LastEditTime: 2021-05-26 16:45:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /admin/src/services/user.ts
 */
export const login = (data: { username: string; password: string }) => {
  return request.post('/users/login', data);
};
export const logout = () => {
  return request.post('/users/logout');
};
export const upload = (type: string, file: any) => {
  return request.post(`/users/upload/${type}`, {
    file: file,
  });
};
export const get_user_info = () => {
  return request.post(`/users/get_user_info`);
};
export const get_user_sign = () => {
  return request.post(`/users/get_user_sign`);
};
